// 印章使用申请
import request from '@/utils/request'

const prefixUrl = '/web/use_seal_flow/'

// 列表
export function list(params) {
  return request({
    url: prefixUrl + 'list',
    method: 'get',
    params: params
  })
}

// 获取详情
export function one(params) {
  return request({
    url: prefixUrl + 'one',
    method: 'get',
    params: params
  })
}

// 保存至草稿箱
export function save(data) {
  return request({
    url: prefixUrl + 'save',
    method: 'post',
    data: data,
    content_type: 'json'
  })
}

// 提交
export function begin(data) {
  return request({
    url: prefixUrl + 'begin',
    method: 'post',
    data: data,
    content_type: 'json'
  })
}

// 通过
export function pass(data) {
  return request({
    url: prefixUrl + 'pass',
    method: 'put',
    data: data,
    content_type: 'json'
  })
}

// 驳回
export function return_back(data) {
  return request({
    url: prefixUrl + 'return_back',
    method: 'put',
    data: data,
    content_type: 'json'
  })
}

// 删除
export function remove(params) {
  return request({
    url: prefixUrl + 'delete',
    method: 'delete',
    params
  })
}

// 彻底删除
export function actual_delete(params) {
  return request({
    url: prefixUrl + 'actual_delete',
    method: 'delete',
    params
  })
}

